﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoyoEden.Web.Data
{
	/// <summary>
	/// Feedback Data,from server to client.Using in scriptservice
	/// </summary>
	[Serializable]
	public class FeedbackData
	{
		#region mamber varialbes
		//private bool isOk;
		//private Dictionary<string, object> context;
		//private string body;
		/// <summary>
		/// Request is ok?
		/// </summary>
		public bool IsOk
		{
			get;
			set;
		}
		/// <summary>
		/// Feedback data's body
		/// </summary>
		public string Body
		{
			get;
			set;
		}
		/// <summary>
		/// Context data passing from server to client
		/// </summary>
		public Dictionary<string, object> Context
		{
			get;
			set;
		}
		#endregion

		#region .ctor
		/// <summary>
		/// default .ctor
		/// </summary>
		public FeedbackData() {
			IsOk = true;
			Body = "";
			Context = new Dictionary<string, object>();
		}
		#endregion
	}
}
